<script setup>
import comps from "@/components/utils/component_selector.js"
import { getChildren } from "./utils.js"
import { computed, defineProps } from "vue";
const props = defineProps(["meta", "vm"]);
const { meta, vm } = props;
const childs = computed(() => getChildren(meta));
</script>
<template>
  <el-container :direction="meta.direction || 'horizontal'">
    <component v-for="child in childs" :is="comps(child)" :meta="child" :vm="vm" />
  </el-container>
</template>